//
//  EditDynamicContentView.h
//  WeCommunity
//
//  Created by mac on 2017/6/16.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EditToolBarVIew.h"
#import "YYText.h"

@protocol EditDynamicContentDelegate <NSObject>

-(void)editDynamicContentWithContent:(NSString *)content;

@end

@interface EditDynamicContentView : UIView<YYTextViewDelegate,UIScrollViewDelegate,EditToolBarDelegate>

@property (nonatomic,strong) YYTextView * textView;

@property (nonatomic,strong) UIScrollView * scrollView;

@property (nonatomic,strong) EditToolBarVIew * editToolView;

@property (nonatomic,assign) NSInteger maxPhotoCount;

@property (nonatomic,assign) NSInteger timeLineType;

@property (nonatomic,assign) id<EditToolBarDelegate> delegate;
@property (nonatomic,assign) id<EditDynamicContentDelegate> editDelegate;

-(instancetype)initWithFrame:(CGRect)frame timeLineType:(NSInteger)timeLineType;

#pragma mark - 收回键盘
-(void)hiddenKeyBoard;

#pragma mark - 显示键盘
-(void)showKeyBoard;

#pragma mark - 开始编辑
-(void)startEditing;

#pragma mark - 结束编辑
-(void)endEditing;


-(void)loadAssetsArray:(NSMutableArray * )array;


@end
